package com.baozun.houji.goods.adapter

import com.baozhun.mall.common.BR
import com.baozhun.mall.common.base.BaseListAdapter
import com.baozhun.mall.common.model.bean.PropsListItem
import com.baozun.houji.goods.R
import com.baozun.houji.goods.databinding.ItemGoodsInfoBinding
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder

/**
 * @Title：商品属性adapter
 * @Description：
 * @Author：xuefeng.zhu
 * @Since：2022/11/10
 * @Version：1.0.0
 */
class GoodsInfoAdapter(data: MutableList<PropsListItem>?) :
    BaseListAdapter<PropsListItem, ItemGoodsInfoBinding>(
        R.layout.item_goods_info, data
    ) {

    override fun convert(holder: BaseDataBindingHolder<ItemGoodsInfoBinding>, item: PropsListItem) {
        holder.dataBinding?.setVariable(BR.model, item)
    }
}


